package Interface;

public abstract class Animal1 {
    private String name;
    private int age ;

    public Animal1(){}

    public Animal1(String name , int age){
        this.name = name;
        this.age =age;
    }

    public void setName(String name){
        this.name = name;
    }

    public String getName(){
        return name;
    }

    public void setAge(){
        this.age=age;
    }

    public int getAge(){
        return age;
    }
     public abstract void eat();
}
